<div class="weadmin-body">
    <form class="layui-form" data-form='{:request()->url()}'>








        <div class="layui-form-item">
            <label for="keyword" class="layui-form-label">
                <span class="we-red">*</span>缩略图
            </label>
            <div class="layui-input-inline">
                <button type="button" data-upload="{:url('admin/upload/file')}" data-field="banner" data-type="images"
                        value="{$vo.banner|default=''}" class="layui-btn">上传文件</button>
                <input type="hidden" name="banner"
                       value="{$vo.banner|default=''}" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
                <img data-preview="banner" style="max-width: 150px;max-height: 150px" src="{$vo.banner|default=''}">

            </div>
        </div>

        <div class="layui-form-item">
            <label for="keyword" class="layui-form-label">
                <span class="we-red">*</span>url（跳转地址）
            </label>
            <div class="layui-input-block">
                <input type="text" id="keyword" name="url" required="" lay-verify="required"
                       value="{$vo.url|default=''}" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item layui-col-xs10 layui-col-xs-offset2">
            {if isset($vo.id)}<input type="hidden" name="id" value="{$vo.id}">{/if}
            <button class="layui-btn" lay-submit="">确定</button>
        </div>
    </form>
</div>

<script>
    layui.use('form',function () {
        layui.form.render();
    })
</script>


